<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 用户登陆记录表 更新
@author WeiXiaoJin
@since 2020-01-11 19:53:20
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">登陆名 </label>
	<div class="col-md-9">
				<input class="form-control" id="loginName" type="text" th:value="${ bean.loginName}" name="loginName" placeholder="登陆名">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">登陆时间 </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="laydate-demo-3" name="loginTime" 
				   th:value="${ #dates.format(bean.loginTime, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="3">
		</div>
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">登陆IP </label>
	<div class="col-md-9">
				<input class="form-control" id="loginIp" type="text" th:value="${ bean.loginIp}" name="loginIp" placeholder="登陆IP">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">登陆状态 </label>
	<div class="col-md-9">
				<input class="form-control" id="loginStatus" type="text" th:value="${ bean.loginStatus}" name="loginStatus" placeholder="登陆状态">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">错误密码 </label>
	<div class="col-md-9">
				<input class="form-control" id="errorPassword" type="text" th:value="${ bean.errorPassword}" name="errorPassword" placeholder="错误密码">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">手机验证码 </label>
	<div class="col-md-9">
				<input class="form-control" id="phoneCode" type="text" th:value="${ bean.phoneCode}" name="phoneCode" placeholder="手机验证码">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">邮箱验证码 </label>
	<div class="col-md-9">
				<input class="form-control" id="emailCode" type="text" th:value="${ bean.emailCode}" name="emailCode" placeholder="邮箱验证码">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">登陆来源 </label>
	<div class="col-md-9">
				<input class="form-control" id="loginSrc" type="text" th:value="${ bean.loginSrc}" name="loginSrc" placeholder="登陆来源">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">退出时间 </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="laydate-demo-3" name="signOutTime" 
				   th:value="${ #dates.format(bean.signOutTime, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="3">
		</div>
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">浏览器信息 </label>
	<div class="col-md-9">
				<input class="form-control" id="loginBrowser" type="text" th:value="${ bean.loginBrowser}" name="loginBrowser" placeholder="浏览器信息">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">登陆备注 </label>
	<div class="col-md-9">
				<input class="form-control" id="loginRemark" type="text" th:value="${ bean.loginRemark}" name="loginRemark" placeholder="登陆备注">
			</div>
</div>
																				</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		function submitHandler() {
            var modifyUrl = ctx+"portal/ucenter/loginRecord/update" ;
			$.operate.save(modifyUrl , $('#modifyForm').serialize());
	    }
	</script>
</body>
</html>
